home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
422mods.zip
/
FLEDIZ13.422
< prev
next >
Wrap
Text File
|
1993-03-28
|
3KB
|
87 lines
FLEDIZ13.MOD: Small update to FILEIDZ: now 2 times faster!
David Morse #116 @8315
1Wednesday, 2March 324, 51993 7@ 1 96:148 7pm 2EST
┌────────────────────────────────────────────────────────────────────────────┐
│ Mod Name: FLEIDZ13.MOD Mod Author: Etheral Cereal │
│ Difficulty: █▒▒▒▒▒▒▒▒▒ Mod Updated by: David Morse │
│ WWIV Versions: 4.21a/4.22 Date: March 24th, 1993 │
│ Affected Files: FILEIDZ.C │
│ Version: 1.3 (ONLY AN UPDATE, requires 1.2 installation) │
│ Steps: 1 │
│ Description: This is a small but USEFUL update to Etheral Cereal's │
│ fantastic mod. It eliminates the need for TWO extraction │
│ commands by comibing DESC.SDI and FILE_ID.DIZ on the │
│ extract command line (thus making the mod about 2 times │
│ faster! :) ) │
└────────────────────────────────────────────────────────────────────────────┘
NOTE: This is NOT a complete modification!!! This is an UPDATE, requiring
that you have installed FILEIDZ.MOD already!
<< STEP 1 >>
Just re-read this function back into your FILEIDZ.C.
void fileidz(uploadsrec *u,int dn)
{
char *extbuf=NULL,run_me[81],s[81],s2[81],*ss;
int f,i;
//extract FILE_ID.DIZ
cd_to(directories[dn].path);
get_dir(s2,1);
strcat(s2,stripfn(u->filename));
cd_to(cdir);
get_arc_cmd(run_me,s2,1,"FILE_ID.DIZ DESC.SDI"); // <DM> Add DESC.SDI
cd_to(syscfg.tempdir);
do_external(run_me,0); // this puts us back in root on return
sprintf(s,"%sFILE_ID.DIZ",syscfg.tempdir);
if (!exist(s)) // <DM> Major change,
sprintf(s,"%sDESC.SDI",syscfg.tempdir); // whole chunk deleted
if (exist(s)) {
npr("Reading in %s as extended description...",s);
ss=read_extended_description(u->filename);
if (ss) {
farfree(ss);
delete_extended_description(u->filename);
}
// read in the file id
if ((extbuf=malloca((long)MAX_LINES*1024))==NULL)
return;
f=open(s,O_RDWR | O_BINARY);
if (filelength(f)<(MAX_LINES*1024)) {
read(f,extbuf,(int) filelength(f));
(extbuf)[filelength(f)]=0;
} else {
read(f,extbuf,(int)MAX_LINES*1024);
(extbuf)[(int)MAX_LINES*1024]=0;
}
close(f);
ss=strtok(extbuf,"\n");
sprintf(u->description,"%s\0",ss);
u->mask &= ~mask_extended;
ss=strtok(NULL,"\0");
add_extended_description(u->filename,ss);
u->mask |= mask_extended;
farfree(extbuf);
npr("Done.\r\n");
}
unlink(s);
cd_to(cdir);
remove_from_temp("*.*",syscfg.tempdir,0); // <DM> Remove comment files
}
<< COMPILE! >>
NOTE: Etheral Cereal disappeared or something, because his net address,
@6869, is now unrecognized by WWIVnet! But I went ahead and
posted this update anyway.
1
27─────────────═════════════ 1T2he 1T2rading 1P2ost 7[1SOUTH7] ═════════════──────────────0
31Columbia, S.C. 2- 5(803) 731-0690 2-3 USR DS 16.8 2- 1WOMRable7 2- 3ASV 2- 7Icenet Support0
47 5WWIVNet7/3AdventNet7/4ICENet7 1@28315 6-1 FidoNet 21:376/126 0
5